package ch.zbw.pra.sysventory.application.controller;

import java.io.Serializable;
import java.util.List;

import ch.zbw.pra.sysventory.dataaccess.dataAccessObject.OperatingSystemDataAccessObject;
import ch.zbw.pra.sysventory.model.OperatingSystem;

/**
 * Controller für die gesammelten OperatingSystems
 * 
 * @author Ralph Koster
 */

public class OperatingSystemController implements Serializable {
	
	private static final long serialVersionUID = 4969604447736934851L;
	
	private OperatingSystemDataAccessObject operatingSystemDataAccessObject;
	private List<OperatingSystem> operatingSystem;

	public OperatingSystemController() {
		this.operatingSystemDataAccessObject = new OperatingSystemDataAccessObject();
	}

	public List<OperatingSystem> loadOperatingSystems() {
		operatingSystem = operatingSystemDataAccessObject.getAllOperatingSystemFromDatabase();
		return operatingSystem;
	}

}
